home *** CD-ROM | disk | FTP | other *** search
- /* File: Init.c */
-
- #include "AESimple.h"
-
-
- void Init_all()
- {
- Handle a_menu_bar;
- EventRecord one_null_event;
-
- InitGraf(&thePort); /* init Quickdraw and global variables*/
- InitFonts(); /* initialize Font manager */
- InitWindows(); /* init Window manager and setup WMgr GrafPort*/
- InitMenus();
- TEInit(); /* inititalize TextEdit */
- InitDialogs(NIL); /* initialize Dialog manager */
-
- FlushEvents(everyEvent, 0); /*clear the Event queue of all events */
-
-
- a_menu_bar = GetNewMBar(1001);
- SetMenuBar(a_menu_bar);
- AddResMenu(GetMHandle(kAppleMenu), 'DRVR');
-
- gDone = FALSE; /* initialize flag to control Main Event Loop */
- gMenuState = 0; /* We just loaded the menu bar */
- InstallAppleEventHandlers();
- InitCursor(); /* set the cursor to arrow instead of clock */
-
- }
-